Skip to content

Docs site 1/3: MkDocs, Material, and mike tooling - #39

Merged
mkarlesky merged 5 commits into
next_versionfrom
feature/docs-site-tooling
Nov 2, 2026
Merged

mkarlesky merged 5 commits into
next_versionfrom
feature/docs-site-tooling

Conversation

@mkarlesky

@mkarlesky mkarlesky commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

This is the first of three stacked PRs that move the user documentation out of the README, onto a versioned GitHub Pages site at https://docs.throwtheswitch.org/vscode-ceedling/. A VS Code extension can update its README only by publishing a release. The site can be revised at any time.

This PR adds the tooling and a placeholder home page. PR 2 adds the User Manual pages and the slimmed README. PR 3 adds the How-To guides and the Help page.

Changes

The setup follows Ceedling's own site, with rake tasks becoming just recipes.

  • mkdocs.yml:
    • Material in its standard colors, with no custom CSS;
    • Ceedling's navigation features and Markdown extensions, plus pymdownx.tabbed and content.tabs.link for per-OS and per-tool tabs;
    • mike with alias_type: symlink and canonical_version: latest;
    • a validation: block that raises broken anchors, absolute links, and pages missing from nav from info level to warnings, so --strict fails on them. MkDocs 1.6 only reports them by default.
  • docs/overrides/main.html: the outdated-version banner. No prerelease config.
  • docs/requirements.txt: pins mkdocs==1.6.1, mkdocs-material==9.7.6 and mike==2.2.0, the versions Ceedling's site last deployed with.
  • Justfile: docs-install, docs-build, docs-serve, docs-preview, docs-deploy VERSION and docs-deploy-latest VERSION.
    • They run on the host in .docsenv/, like Ceedling's, and refuse to run in the sidecar.
    • The site keeps one version per minor release. A deploy of any x.y.z publishes as x.y.0, so each patch release refreshes its minor release's documentation.
    • A deploy refuses a version that isn't x.y.z, and a working tree with changes, which mike would publish under HEAD's commit.
    • It fetches origin first, since mike fast-forwards from origin/gh-pages but never fetches.
    • It runs the strict build first, since mike's own build isn't strict.
    • docs-deploy-latest also runs mike set-default.
  • CI: a docs job builds the site with --strict. Deploys stay manual, as Ceedling's do.
  • Ignores:
    • .gitignore adds .docsenv/ and site/;
    • .vscodeignore keeps every site file, and out-validate/, out of the .vsix;
    • ESLint ignores site/ and .docsenv/, which it would otherwise lint as JavaScript;
    • npm run clean removes site/.
  • Docs:
    • docs/Development.md gets a section 8, "The Documentation Site", covering the layout, page conventions, recipes, the release deploy, and how to revise a released version from a docs-<version> tag.
    • The release-flow comment in cd.yml and sidecar/README.md point to that section.

Verification

  • Build: just docs-install and just docs-build pass. A broken #anchor and a page missing from nav were each shown to fail the strict build.
  • mike dry run in a scratch clone, with no remote: deploying 2.0.0, then 2.1.0 as latest, then running set-default, gave Ceedling's gh-pages layout.
    • versions.json, a latest symlink, a root redirect to latest/ and .nojekyll are all present.
    • The canonical link points to https://docs.throwtheswitch.org/vscode-ceedling/latest/.
    • 2.0.0 carries the outdated banner.
  • Recipe guards: a 2.1 version, a $(…) version, a dirty tree and SIDECAR=1 are each refused.
  • .vsix contents: vsce ls lists no site files.
  • Tests and lint: just test passes (620 unit, 20 integration), and just lint is clean.
  • Defensive review: one reviewer found six issues and some nits. Fixed:
    • deploys skipped strict validation;
    • the revision steps never committed the edits;
    • the venv helper silently used any active venv;
    • three inaccurate statements in the docs;
    • argument quoting in the version check.

After merging

Nothing deploys until the next release. Then:

  • run just docs-deploy-latest <version>;
  • an administrator sets the repo's Pages source to gh-pages.

🤖 Generated with Claude Code

mkarlesky and others added 4 commits November 2, 2026 13:16
… the outdated-version banner, pinned tools, and a placeholder home page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ost venv, refusing uncommitted trees and the sidecar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s the pull request

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…loys and revises it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elease redeploys

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mkarlesky
mkarlesky merged commit 5c23595 into next_version Nov 2, 2026
6 of 8 checks passed
@mkarlesky
mkarlesky deleted the feature/docs-site-tooling branch November 2, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant